package eirkdbd.lab1.gui.tab;

import javax.swing.JPanel;

public abstract class AbstractTab extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9000L;

	public AbstractTab() {
		init();
	}
	
	/**
	 * Initializes tab.
	 */
	protected abstract void init();
	
	/**
	 * Gets data from model to user interface.
	 */
	public abstract void dataToUi();
	
	/**
	 * Gets data from user interface to model.
	 */
	public abstract void dataFromUi();
	
	/**
	 * Refreshes user intefrace after changing tab.
	 */
	public void refreshUi() {}
}